package com.todo.sight.application.iface.frontend.request;

import com.fasterxml.jackson.annotation.JsonIgnore;

import com.todo.common.common.entity.CurrentUser;
import com.todo.common.common.entity.request.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author azhebuxing
 * @date 2024/5/8 21:01
 * @description
 */
@Data
@Schema(title = "根据城市和名称查询POI信息", description = "根据城市和名称查询POI信息")
public class QuerySightByCityAndNameParam extends PageRequest {

    private CurrentUser _user;

    @NotNull
    @Schema(title = "城市", description = "城市")
    private String city;

    @NotNull
    @Schema(title = "poi类型", description = "poi类型")
    private Integer poiType;


    @Schema(title = "名称", description = "名称")
    private String name;

    public boolean baseCheck() {
        if (city == null || poiType == null) {
            return false;
        }
        return true;
    }
}
